Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use ScrollLocker #220

Merged
merged 7 commits into from
Jan 4, 2021
Merged

refactor: use ScrollLocker #220

merged 7 commits into from
Jan 4, 2021

Conversation

shaodahong
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Dec 24, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/dialog/fua3hb9m8
✅ Preview: https://dialog-git-scroll-locker.react-component.vercel.app

@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #220 (6dba709) into master (23865bc) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
- Coverage   98.08%   98.07%   -0.02%     
==========================================
  Files           6        6              
  Lines         157      156       -1     
  Branches       46       45       -1     
==========================================
- Hits          154      153       -1     
  Misses          2        2              
  Partials        1        1              
Impacted Files Coverage Δ
src/Dialog/index.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23865bc...6dba709. Read the comment docs.

@@ -133,6 +133,7 @@ export default function Dialog(props: IDialogChildProps) {
}

// ========================= Effect =========================
// eslint-disable-next-line consistent-return
useEffect(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

末尾加return null 或者 空函数可以消灭这个lint 的disable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

……不能 return null

@shaodahong
Copy link
Member Author

这个 test 有点奇怪,昨天还是好的,今天就挂了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants